package cn.tedu.spring.auto;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository
public class UserCache {
    /*
        手动指定需要注入的Bean对象
        1.IoC容器中Spring Bean对象的名称;
     */
    @Autowired
    @Qualifier(value="cacheImpl1")
    private Cache cache;
}
